<div id="central" class="warp">
  {include file="index/menu"}
  <div id="main">
    <div id="header">
      <div class="title">
        <h1>会员中心</h1>
        <div class="small">密码修改</div>
      </div>
      <div class="return"><a href="{$url(member/index/index)}">中心首页</a></div>
      <div class="fn-clear"></div>
    </div>
    <div class="form">
    <form action="{$url(information/pass_save)}" method="post" id="form">
    	<ul>
        	<li><label>用户名：</label> {$user_info.username}</li>
            <li><label><span class="red">*</span> 原始密码：</label> <input name="old_password" type="password" class="text" id="old_password" datatype="*" errormsg="原始密码不能为空" > <span class="Validform_checktip"></span> </li>
            <li><label><span class="red">*</span> 密 码：</label> <input name="password" type="password" class="text" id="password" datatype="*6-16" errormsg="密码只支持6~16位字符"  /> <span class="Validform_checktip"></span></li>
            <li><label><span class="red">*</span> 重复密码：</label> <input name="password2" type="password" class="text" id="password2" recheck="password" datatype="*6-16" errormsg="确认密码不正确" /> <span class="Validform_checktip"></span> </li>
            <li><label></label> <button class="button" type="submit">提交</button> <span id="tip" class="load"></span></li>
        </ul>
    </form>
    </div>
  </div>
  <div class="fn-clear"></div>
</div>

<script>
Do.ready('userbase','form','dialog', function() {
	saveform(function(){
		$('#tip').text('密码修改成功！马上将为您刷新');
		window.setTimeout(function(){ 
			window.location.reload();
		},3000);
	});
});
</script>